<!-- 碰一碰文案 -->
<template>
	<view class="copywritingContent">
		<view class="flex-between m-bottom10">
			<view class="add-copy-cls flex " @click="addWriting()">
				<uni-icons color="#008BFF" type="plusempty" size="14"></uni-icons>
				<view>新增文案</view>
			</view>
			<view class="display-a padding_20rpx_0 ">
				<image class="matrix-15" @click="getAllSel()"
					:src="allSel ? group3639Five : group3640Five"></image>
				<!-- <view class="color_1E6CEB" @click="getAllSel()">全选({{isSel.length+'/'+total}})</view> -->
				<view class="color_1E6CEB" @click="getAllSel()">全选</view>
			</view>
		</view>
		<mescroll-body ref="mescrollRef" :height="windowHeight+'rpx'" @init="mescrollInit" @down="downCallback"
			@up="upCallback" :up="upOption" :down="downOption">
			<view class="copywritingList " v-for="(item,i) in copywritingList" :key="i" @click="getSel(item)">
				<view class="font-overflow2 margin-bottom_30rpx">
					{{item.copywritingContent}}
				</view>
				<view class="margin-bottom_30rpx flex-align-center">
			
					<image class="matrix-15"
						:src="isSel.indexOf(item.id) != -1 ? group3639Five : group3640Five">
					</image>
					<view class="flex-start-center-wrap flex1 ">
						<block v-if="item.picture.length==1">
							<view v-for="(imgs,i) in item.picture" :key="i">
								<!-- <image class="achievementsImg" :src="imgs" @click.stop="imgScare(imgs,1)"
									mode="aspectFill">
								</image> -->
								<image class="image" :src="imgs" @click.stop="imgScare(imgs,1)" mode="aspectFill">
								</image>
							</view>

						</block>
						<block v-else>
							<view v-for="(img,indexs) in item.picture" :key="indexs">
								<image class="image" :src="img" @click.stop="imgScare(item.picture,2,indexs)"
									mode="aspectFill">
								</image>
							</view>
						</block>
					</view>
				</view>
				<view class="flex-between">
					<view class="">
						<!-- <view class="">
							使用状态 ：未使用
						</view>
						<view class="">
							分享次数 5
						</view> -->
					</view>
					<view class="flex-between width100">
						<view class="del-copy-cls flex " @click="delWriting(item.id)">
							<uni-icons color="#999999" type="trash" size="20"></uni-icons>
							<view>删除</view>
						</view>
						<view class="flex-align-center">
							<view class="scCopy flex " @click.stop="generatedsPop(item)">
								生成文案
							</view>
							<view class="modifyCopywriting flex " @click.stop="modifyWriting(item)">
								修改文案
							</view>
						</view>
					</view>
				</view>


				<view class="look-copy flex-between " @click.stop="toChildCopy(item.id)">
					<view>查看生成文案</view>
					<uni-icons type="right" size="20"></uni-icons>

				</view>


			</view>
		</mescroll-body>
		<view style="height: 100rpx;"></view>

		<view class="list-bott flex-between">
			<view class="flex-between width100">
				<view class="cancelCopywriting flex " @click="cancelSel()">
					取消全选
				</view>
				<view class="addCopywriting flex " @click="delWriting()">
					删除文案
				</view>
			</view>
		</view>

		<sunui-popup ref="routeLine">
			<template v-slot:content>

				<view class="v-pop-clsss">
					<view class="flex-between" style="padding: 0 0 40rpx;">
						<view class="">

						</view>
						<view class="font-weight_bold text-align_center ">
							{{form.id?'修改':'新增'}}文案
						</view>
						<uni-icons type="closeempty" size="20" @click="closeRouteLine()"></uni-icons>



					</view>
					<view class="margin-bottom_30rpx font-weight_bold fontSize26">
						文案内容
					</view>
					<view>
						<uv-textarea v-model="form.copywritingContent" placeholder="请输入文案"></uv-textarea>
					</view>
					<view class="margin_30rpx_0 font-weight_bold fontSize26">
						上传图片
					</view>
					<view class="">
						<sunui-upimgSelectAll :border="'2rpx dashed #bfbfbf'" :formData="imgFormData" :maxFileNumber="9"
							:storageMode="storageMode" :header="header" :size="['200rpx', '200rpx']" btnName="上传图片"
							:uploadServerUrl="upPicUrl2" ref="selectimgandupload2" @uploaded="imgLoaded2"
							@change="imgsChange2"><template v-slot:icon>
								<uni-icons type="camera-filled" color="#1890FF" size="40"></uni-icons>
							</template></sunui-upimgSelectAll>
					</view>

					<view class="positions-cls">
						<view class="c-but2" style="margin-top: 40rpx;" @click="btnClickRoute()">
							{{form.id?'修改':'新增'}}文案
						</view>
					</view>

				</view>
			</template>
		</sunui-popup>


		<!-- “生成文案” 弹框 -->
		<sunui-popup ref="pop">
			<template v-slot:content>
				<view class="pop-copy-cls">
					
					<view class="font-weight font-size_36rpx margin-bottom_50rpx flex">生成文案</view>
					<input  type="number" class="input-name" v-model.number="popItem.count" placeholder="请输入视频数量"
						placeholder-class="placeholder" />
					
					
					
						<!-- <view class="font-weight font-size_36rpx margin-bottom_50rpx flex">生成文案</view> -->
						 
							
						
						<view style="height: 140rpx;"></view>
						<view class="flex-between pop-fixed-btn">
							<view  class="width_50 saveBtn flex" @click="saveGenerateds">保存</view>
							<view class="width_50 cancelBtn flex" @click="closeGeneratePop">取消</view>
						</view>
					
				</view>
			</template>
		</sunui-popup>

			<uv-tabbar :value="value" @change="changeTabbar">
					<uv-tabbar-item text="首页">
		
		
						<template v-slot:active-icon>
							<image class="icon" :src="none1"></image>
						</template>
						<template v-slot:inactive-icon>
							<image class="icon" :src="none1"></image>
						</template>
					</uv-tabbar-item>
		
					<uv-tabbar-item text="记录">
		
						<template v-slot:active-icon>
							<image class="icon" :src="sel2 "></image>
						</template>
						<template v-slot:inactive-icon>
							<image class="icon" :src="none2"></image>
						</template>
					</uv-tabbar-item>
					<uv-tabbar-item text="配置">
						<template v-slot:active-icon>
							<image class="icon" :src=" sel3 "></image>
						</template>
						<template v-slot:inactive-icon>
							<image class="icon" :src="none3"></image>
						</template>
					</uv-tabbar-item>
					<uv-tabbar-item text="文案">
		
						<template v-slot:active-icon>
							<image class="icon" :src="sel4 "></image>
						</template>
						<template v-slot:inactive-icon>
							<image class="icon" :src="none4"></image>
						</template>
					</uv-tabbar-item>
		
				</uv-tabbar>
	</view>

</template>

<script>
	require('@/utils/ali-oos/hmac.js');
	require('@/utils/ali-oos/sha1.js');
	const Crypto = require('@/utils/ali-oos/crypto.js');
	const base64 = require('@/utils/ali-oos/base64.js');
	export default {

		components: {
			// tqbTabbar
		},
		data() {
			return {
				popItem: {
					count: ''
				}, //生成文案 item
				// 下拉配置项
				downOption: {
					auto: false
				},
				// 上拉配置项
				upOption: {
					auto: false
				},
				isComplete:false,
				
				value: 3,
				imgStr2: [],
				img2: [],
				upPicUrl2: '',
				imgFormData: null,
				storageMode: 2,
				ossInfo: {},
				header: '',
				timeDate: '',
				suffix: '',
				formData: {
					key: '',
					policy: '',
					OSSAccessKeyId: '',
					signature: '',
					success_action_status: '200'
				},
		        group3639Five:this.$imgs.group3639Five,
			    group3640Five:this.$imgs.group3640Five,
				
			
				isSel: [],
				groupArr: [],
				policyText: '',
				total: 0,
				allSel: false,
				none1:this.$imgs.none1,
				none2:this.$imgs.none2,
				none3:this.$imgs.none3,
				none4:this.$imgs.none4,
				
				sel1:this.$imgs.sel1,
				sel2:this.$imgs.sel2,
				sel3:this.$imgs.sel3,
				sel4:this.$imgs.sel4,
				form: {
					copywritingContent: '',
					picture: '',
					sort: 1,
					merchantId: uni.getStorageSync('merchantId'),
					id: ''
				},
				copywritingList: [],

				selObj: {},

				// 提交状态
				loading: false,

				// 表单数据
				newForm: {},
			}
		},
		onShow() {
			this.$nextTick(() => {
				this.mescroll.resetUpScroll();
			});
			this.$at.releaseKey('submit');
		},
		onLoad() {
			this.set()


		},

		methods: {
		changeTabbar(e) {
			console.log(e)
			if (e == 0) {
				this.$sun.navSwitch('/pages/index/index')
		
			} else if (e == 1) {
		
				this.$sun.navTo('/pagesA/creatCenter/TouchIt/index')
			} else if (e == 2) {
				this.$sun.navTo('/pagesA/creatCenter/TouchIt/touchConfiguration')
				
			} else {
				this.$sun.navTo('/pagesA/creatCenter/TouchIt/CopywritingList')
			}
		},
			async upCallback(scroll) {
				const result = await this.$http.post({
					url: this.$api.touchcopywritingPage,
					data: {
						merchantId: uni.getStorageSync("merchantId"),
						page: scroll.num,
						limit: 10
					}
				});
				if (result.code == 2000) {
					this.mescroll.endByPage(result.data.list.length, result.data.count);
					this.total = result.data.count
					if (scroll.num == 1) this.copywritingList = [];
					this.copywritingList = this.copywritingList.concat(result.data.list);
					result.data.list.forEach((item, index) => {
						const pictureList = this.convertToArray(item.picture);

						if (Array.isArray(pictureList)) {
							console.log("已转为数组:", pictureList);
							this.copywritingList[index].picture = pictureList
						}


					})



				}
			},
			convertToArray(input) {
				if (typeof input === 'string') {
					return input.split(','); // 字符串直接分割为数组‌:ml-citation{ref="1,3" data="citationList"}
				} else if (Array.isArray(input)) {
					return input.flatMap(item =>
						typeof item === 'string' ? item.split(',') : [String(
							item)] // 数组元素递归处理‌:ml-citation{ref="4" data="citationList"}
					);
				} else {
					return [String(input)]; // 非字符串/数组类型转为字符串并包裹成数组‌:ml-citation{ref="2" data="citationList"}
				}
			},


			async btnClickRoute() {

				if (!this.form.copywritingContent) {
					this.$sun.toast('请输入文案', 'none')
				} else if (!this.form.picture) {
					this.$sun.toast('请上传图片', 'none')
				}
				console.log(this.form)
				const result = await this.$http.post({
					url: this.$api.touchcopywritingAdd,
					data: {
						...this.form,
						id: this.form.id ? this.form.id : undefined
					}
				});
				if (result.code == 2000) {
					console.log(result)



					this.$sun.toast(result.msg, 'none')




					setTimeout(() => {
						this.$refs.routeLine.close()
						this.$nextTick(() => {
							this.mescroll.resetUpScroll();
						});
					}, 500)
				} else {
					this.$sun.toast(result.msg, 'none')
					this.$refs.routeLine.close()
				}
			},

			async set() {
				const result = await this.$http.get({
					url: this.$api.userOssSignature,
					data: {
						merchantId: uni.getStorageSync('merchantId')
					}
				});
				if (result.code == 2000) {
					// accessKey 阿里云key秘钥 accessId 阿里云id
					console.log('result', result);
					this.upPicUrl2 = result.data.host;
					this.formData.OSSAccessKeyId = result.data.accessId;
					this.formData.policy = base64.encode(JSON.stringify(this.policyText));
					let message = this.formData.policy;
					let bytes = Crypto.HMAC(Crypto.SHA1, message, result.data.accessKey, {
						asBytes: true
					});
					this.formData.signature = Crypto.util.bytesToBase64(bytes);

					console.log('------------formData', this.formData);
				}
			},
			delayLoop(file, i, index) {

				if (i >= file.length) {

					return;
				}

				if (file.length) {
					this.timeDate = new Date().getTime();

					let fileUrl = file[0].url;
					console.log(fileUrl)
					let markIndex = fileUrl.lastIndexOf('.');
					// this.suffix = fileUrl.substring(markIndex); //后缀
					this.suffix = '.png'

					console.log('this.ossInfo', this.ossInfo);
					this.imgFormData = {
						name: this.timeDate + this.suffix,
						key: this.timeDate + this.suffix, //上传图片的名字和路径（默认路径根目录，自定义目录：xxx/xxx.png）
						policy: this.ossInfo.policy,
						OSSAccessKeyId: this.ossInfo.accessId,
						success_action_status: '200',
						signature: this.ossInfo.signature
					};
					this.header = {
						'Access-Control-Allow-Origin': '*',
						'x-oss-callback-Authorization': 'access_token'
					};
					this.$nextTick(() => {
						this.$refs.selectimgandupload2.upload()
					});
					console.log('页面阿里云url22222222222222', this.ossInfo?.host + '/' + this.timeDate + this.suffix);

				} else {
					this.form.picture = ''
				}

				setTimeout(() => {
					this.delayLoop(file, i + 1);
				}, 1000);
			},
			async userOssSignature(file) {

				console.log('this阿里云上传进入=======');
				const ts = new Date().getTime();
				const us = {
					ts
				};

				const res = await this.$http.get({
					url: this.$api.userOssSignature,
					data: {
						merchantId: uni.getStorageSync('merchantId'),
					}
				});
				this.ossInfo = res.data;
				this.upPicUrl2 = this.ossInfo?.host;
				// 获取上传图片名称和后缀
				console.log(file)

				if (file.length) {
					this.delayLoop(file, 0);

				} else {
					this.form.picture = ''
				}



			},
			imgLoaded2(e) {
				console.log('上传返回eeeee111============', e);
				try {
					this.img2 = [];
					for (let i = 0; i < e.length; i++) {

						this.img2.push(e[i].url);
					}
				} catch (e) {
					this.img2 = [];
				}

				this.imgStr2 = this.img2
				console.log(this.imgStr2)
				this.form.picture = this.imgStr2.length === 1 ? this.imgStr2[0].toString() : this.imgStr2
					.join(',');

				console.log(this.form.picture)


			},
			imgsChange2(file) {
              

				// 文件名
				this.timeDate = new Date().getTime();
				console.log('上传发生改变this.storageMode11111============', this.storageMode, '参数file', file);
				
				// 如果是2 上传  阿里云 3  七牛云
				if (this.storageMode == 2) {
					this.userOssSignature(file);
				}
				
			},
			closeRouteLine() {
				this.$refs.routeLine.close()
			},

			// 跳转查询子文案
			toChildCopy(id) {
				this.$sun.navGo('/pagesB/touchConfiguration/childCopywirting?pid=' + id);
			},
			// 生成文案pop
			generatedsPop(item) {
				this.popItem = item
				this.$refs.pop.show({
					style: 'background-color:#fff;width:750rpx;text-align:center;height:auto;overflow-x:auto;border-top-left-radius: 20rpx;border-top-right-radius: 20rpx;',
					anim: 'bottom',
					position: 'bottom',
					topclose: false
				});
			},

			// “生成文案” 关闭弹框
			closeGeneratePop() {
				this.popItem.count = '';
				this.$refs.pop.close();
			},



			// 保存生成文案
			async saveGenerateds() {
				if (!this.popItem.count || this.popItem.count <= 0) {
					this.$sun.toast('请输入生成数量', 'none');
					return;
				}
				let saveApi = '';
				this.loading = true;
				this.$at.uniDoFunc({
					key: 'submit',
					success: async () => {
						this.$at.lockKey('submit');
						const result = await this.$http.post({
							url: this.$api.copyImitation,
							data: {
								count: this.popItem.count,
								content: this.popItem.copywritingContent,
								countType: 1, // 生成类型 0 限制20字 1 不限制
								merchantId: uni.getStorageSync('merchantId') // 商家id
							}
						});
						console.log(result.code, 'result.code')
						if (result.code == 2000) {
							console.log('查询生成文案result', result.data);

							let list = result.data.data.split('&')

							// 添加生成文案保存
							const info = await this.$http.post({
								url: this.$api.addAryTouchCopywriting,
								data: {
									contentArr: list,
									pid: this.popItem.id,
									merchantId: uni.getStorageSync('merchantId') // 商家id
								}
							});
							if (info.code == 2000) {
								console.log('查询生成文案info', info.data);
								this.closeGeneratePop();
								setTimeout(() => {
									this.$sun.toast('生成文案成功');
								}, 400)
								this.$at.releaseKey('submit');

							} else {
								this.$sun.toast(info.msg, 'none');
								this.$at.releaseKey('submit');
							}
						} else {
							this.loading = false;
							this.$at.releaseKey('submit');
							this.$sun.toast(result.msg, 'none');
						}
					}
				});
			},



			// 修改文案
			modifyWriting(item) {

				this.$sun.assignObject(this.form, {
					...item
				})

				console.log(this.form)


				const imgStr2 = this.form.picture
				if (imgStr2.length) {
					setTimeout(() => {
						this.$refs.selectimgandupload2.setItems(imgStr2);
					}, 600)

				}
				setTimeout(() => {
					this.$refs.routeLine.show({
						style: 'background-color:#fff;width:750rpx;border-radius: 10rpx 10rpx 0 0;',
						anim: 'bottom',
						position: 'bottom',
						shadeClose: false,
						rgba: 'rgba(50,50,50,.6)'
					});
				}, 500)


			},
			addWriting() {
				this.form = {
						copywritingContent: '',
						picture: '',
						sort: 1,
						merchantId: uni.getStorageSync('merchantId'),
						id: '',
					},
					setTimeout(() => {
						this.$refs.selectimgandupload2.setItems([]);
					}, 600)

				setTimeout(() => {
					this.$refs.routeLine.show({
						style: 'background-color:#fff;width:750rpx;border-radius: 10rpx 10rpx 0 0;',
						anim: 'bottom',
						position: 'bottom',
						shadeClose: false,
						rgba: 'rgba(50,50,50,.6)'
					});
				}, 500)


			},
			// 取消全选
			cancelSel() {
				this.allSel = false;

				this.isSel = [];
				this.groupArr = [];
			},
			async delWriting(ids) {
				if (!this.isSel.length && !ids) {
					this.$sun.toast('请选中一条文案后在删除', 'none')
					return
				}


				uni.showModal({
					title: '提示',
					content: '是否删除该文案',
					success: async (res) => {
						if (res.confirm) {
							const result = await this.$http.post({
								url: this.$api.touchcopywritingDelete,
								data: {
									ids: ids ? [ids] : this.isSel,
								},


							})
							if (result.code == 2000) {

								setTimeout(() => {
									this.$sun.toast(result.msg, 'none')
								}, 1000)

								this.isSel = [];
								this.groupArr = [];

								this.$nextTick(() => {
									this.mescroll.resetUpScroll();
								});

							} else {

								this.$sun.toast(result.msg, 'none')
							}
						} else if (res.cancel) {

						}
					}
				});


			},
			//全选
			getAllSel() {

				this.allSel = !this.allSel;

				this.isSel = [];
				this.groupArr = [];

				if (this.allSel) {
					for (let i = 0; i < this.copywritingList.length; i++) {
						this.isSel.push(this.copywritingList[i].id);
						this.groupArr.push(this.copywritingList[i]);
					}
				}

			},
			getSel(obj) {
				console.log(obj)




				let isBoo = this.isSel.indexOf(obj.id);
				console.log(isBoo)
				if (isBoo == -1) {
					this.isSel.push(obj.id);
					this.groupArr.push(obj);
					if (Number(this.total == this.isSel.length)) {
						this.allSel = true;
					}
				} else {
					this.isSel.splice(isBoo, 1);
					this.groupArr.splice(isBoo, 1);
					this.allSel = false;
				}

				console.log(this.isSel)


			},
			imgScare(img, len, index) {
				console.log(img)

				if (len == 1) {
					uni.previewImage({
						urls: [img],
						longPressActions: {
							itemList: ['发送给朋友', '保存图片', '收藏'],
							success: function(data) {

							},
							fail: function(err) {

							}
						}
					});
				} else {
					uni.previewImage({
						urls: img,
						current: index,
						longPressActions: {
							itemList: ['发送给朋友', '保存图片', '收藏'],
							success: function(data) {

							},
							fail: function(err) {

							}
						}
					});
				}


			},
		}



	}
</script>

<style lang="less">
	.icon {
		width: 50rpx;
		height: 50rpx;
	}

	.copywritingContent {
		.input-name {
			width: 610rpx;
			padding: 20rpx;
			border: 2rpx solid #d9d9d9;
			border-radius: 10rpx;
		}
		::v-deep.uv-textarea {
			background-color: #F0F0F0 !important;
		}

		.del-copy-cls {
			padding: 16rpx 16rpx 16rpx 0;

			view {
				color: rgb(153, 153, 153);
				font-size: 24rpx;
				margin-left: 8rpx;
			}
		}

		.add-copy-cls {
			view {
				color: rgb(0, 139, 255);
				font-size: 28rpx;
				margin-left: 12rpx;
			}
		}

		.positions-cls {
			padding-bottom: 30rpx;
		}

		.c-but2 {
			padding: 30rpx 0;
			border-radius: 10rpx;
			background: linear-gradient(90deg, rgb(188, 120, 248), rgb(135, 80, 242) 100%);
			margin: 0 32rpx;
			font-size: 32rpx;
			color: #fff;
			text-align: center;
		}

		.v-pop-clsss {
			padding: 15rpx 20rpx 30rpx;
			background-color: #fff;
			width: 100%;
			border-radius: 20rpx 20rpx 0rpx 0rpx;

			.margin-around30 {
				margin: 0 30rpx;
			}

			.pop-title-cls {
				font-size: 46rpx;
				font-weight: 600;
			}

			.pop-speed-cls {
				margin: 50rpx 30rpx 20rpx;

				text {
					font-size: 36rpx;
				}

				view {
					font-size: 40rpx;
				}
			}

			.rate-cls {
				width: 80rpx;
				font-size: 36rpx;
			}
		}


		// “生成文案” 弹框 cls
		.pop-copy-cls {
			position: relative;
			background-color: #fff;
			width: 100%;
			padding: 40rpx;
			border-radius: 20rpx 20rpx 0rpx 0rpx;
			// height: 310rpx !important;
		}

		.pop-fixed-btn {
			position: absolute;
			bottom: 50rpx;
			width: calc(100% - 80rpx);
			.saveBtn{
				width: 280rpx;
				height: 80rpx;
				background-color: #409eff;
				color: #fff;
			}
			.cancelBtn{
				width: 280rpx;
				height: 80rpx;
				background-color: #fff;
				color: #606266;
				border: 2rpx solid #dcdfe6;
			}
		}

		.padding_40rpx {
			padding: 40rpx 20rpx;
		}

		.yellow-cls {
			color: #faad14;
		}

		.red-cls {
			color: #ff4636;
		}

		.green-cls {
			color: #52c41a;
		}

		/* end */


		padding: 20rpx;

		.matrix-15 {
			width: 36rpx;
			height: 36rpx;
			margin-right: 20rpx;
		}

		.list-bott {
			width: 100%;
			position: fixed;
			z-index: 999;
			bottom: 95rpx;
			right: 5rpx;
			// width: 750rpx;
			background-color: #FFFFFF;
			padding: 28rpx 15rpx;



		}

		.delCopywriting {
			margin-right: 30rpx;
			padding: 10rpx;
			width: 200rpx;
			height: 100rpx;
			padding-right: 16rpx;
			border-radius: 166rpx;
			color: rgb(255, 255, 255);
			background: #FF0000;
		}

		.cancelCopywriting {
			padding: 10rpx;
			width: 39%;
			height: 100rpx;
			padding-right: 16rpx;
			border-radius: 166rpx;
			color: rgb(26, 115, 245);
			border: 2rpx solid rgb(229, 229, 229);
			background: #fff;
		}

		.addCopywriting {
			padding: 10rpx;
			width: 58%;
			height: 100rpx;
			padding-right: 16rpx;
			border-radius: 166rpx;
			color: rgb(255, 255, 255);
			background: rgb(26, 115, 245);
		}

		.copywritingList {
			padding: 20rpx;
			margin-bottom: 15rpx;

			// height: 424rpx;
			border-radius: 20rpx;
			background: rgb(255, 255, 255);
			position: relative;

			.scCopy {
				background: #2DBC00;

			}

			.modifyCopywriting {
				background: rgb(26, 115, 245);
			}

			.scCopy,
			.modifyCopywriting {
				margin-left: 16rpx;
				padding: 16rpx;
				// width: 164rpx;
				height: 60rpx;
				line-height: 60rpx;
				border-radius: 166rpx;
				color: rgb(255, 255, 255);
			}


			.look-copy {
				margin-top: 20rpx;
				border-top: 2rpx solid rgb(245, 245, 245);
				width: 100%;
				padding: 30rpx 0 6rpx;

				view {
					color: rgb(102, 102, 102);
				}

				.img-cls {
					height: 28rpx;
				}
			}


			.achievementsImg {
				max-height: 840rpx !important;
				width: 300rpx !important;
			}

			.image {
				width: 174rpx;
				height: 174rpx;
				border-radius: 20rpx;
				padding: 6rpx;
				/* width: 174rpx;
				height: 174rpx;
				border-radius: 20rpx;
				padding: 6rpx; */
			}

		}

	}
</style>